package cn.nb12.annnotaion.test;

import cn.nb12.annnotaion.Insert;
import cn.nb12.annnotaion.parsing.SqlParser;

public class UserDao {
	
	//拿到sql语句
	private String sql;
	
	
	@Insert("insert into user values(1,2,3,4)")
	public void insert(){
		System.out.println(sql);
	}
	
	public static void main(String[] args) {
		UserDao userDao = new UserDao();
		SqlParser.inject(userDao);
		System.out.println(userDao.sql);
	}
}
